package com.juzipi.common.constant.mp;

import com.juzipi.common.utils.UniversalUtils;
import com.juzipi.common.utils.security.SecurityUtils;

import java.util.Date;

/**
 * mybatis plus相关的常量类
 */

public class ConstantsMp {

    /**
     * mp自动插入值的字段名常量
     */
    /*
    基础通用属性字段
     */
    public static final String CREATE_TIME = "createTime";

    public static final String UPDATE_TIME = "updateTime";

    public static final String CREATE_BY = "createBy";

    public static final String UPDATE_BY = "updateBy";

    public static final String VERSION = "version";//乐观锁版本号

    public static final String DELETED = "deleted";//逻辑删除


    /*
    user表相关
     */
    public static final String ROLE_ID = "roleId";

    public static final String NICKNAME = "nickname";

    public static final String NON_DISABLE = "nonDisable";//用户状态

    public static final String NON_LOCKED = "nonLocked";//是否未锁定


    /**
     * 以下为值常量
     */
    /*
    基础通用属性值
     */
    public static final Integer DELETED_VALUE = 0;

    public static final Integer VERSION_VALUE = 0;


    /*
    user表值常量
     */
    public static final Long ROLE_ID_VALUE = 1L;

    public static final String NICKNAME_VALUE = UniversalUtils.getEnglishRandomNickname(8);//随机8位的昵称

    public static final Boolean NON_DISABLE_VALUE = true;

    public static final Boolean  NON_LOCKED_VALUE = true;

}
